package com.km.team.phsystem.beans.pojo;

import java.io.Serializable;

public class BusinessStartEndInfo implements Serializable {
    private Integer id;

    private String dayId;

    private String businessType;

    private String startOrEnd;

    private String businessTypeName;

    private String businessTypeId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDayId() {
        return dayId;
    }

    public void setDayId(String dayId) {
        this.dayId = dayId == null ? null : dayId.trim();
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType == null ? null : businessType.trim();
    }

    public String getStartOrEnd() {
        return startOrEnd;
    }

    public void setStartOrEnd(String startOrEnd) {
        this.startOrEnd = startOrEnd == null ? null : startOrEnd.trim();
    }

    public String getBusinessTypeName() {
        return businessTypeName;
    }

    public void setBusinessTypeName(String businessTypeName) {
        this.businessTypeName = businessTypeName == null ? null : businessTypeName.trim();
    }

    public String getBusinessTypeId() {
        return businessTypeId;
    }

    public void setBusinessTypeId(String businessTypeId) {
        this.businessTypeId = businessTypeId == null ? null : businessTypeId.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BusinessStartEndInfo other = (BusinessStartEndInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDayId() == null ? other.getDayId() == null : this.getDayId().equals(other.getDayId()))
            && (this.getBusinessType() == null ? other.getBusinessType() == null : this.getBusinessType().equals(other.getBusinessType()))
            && (this.getStartOrEnd() == null ? other.getStartOrEnd() == null : this.getStartOrEnd().equals(other.getStartOrEnd()))
            && (this.getBusinessTypeName() == null ? other.getBusinessTypeName() == null : this.getBusinessTypeName().equals(other.getBusinessTypeName()))
            && (this.getBusinessTypeId() == null ? other.getBusinessTypeId() == null : this.getBusinessTypeId().equals(other.getBusinessTypeId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDayId() == null) ? 0 : getDayId().hashCode());
        result = prime * result + ((getBusinessType() == null) ? 0 : getBusinessType().hashCode());
        result = prime * result + ((getStartOrEnd() == null) ? 0 : getStartOrEnd().hashCode());
        result = prime * result + ((getBusinessTypeName() == null) ? 0 : getBusinessTypeName().hashCode());
        result = prime * result + ((getBusinessTypeId() == null) ? 0 : getBusinessTypeId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", dayId=").append(dayId);
        sb.append(", businessType=").append(businessType);
        sb.append(", startOrEnd=").append(startOrEnd);
        sb.append(", businessTypeName=").append(businessTypeName);
        sb.append(", businessTypeId=").append(businessTypeId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}